]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Remove SessionType type
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 17 May 2012 14:11:54 +0000 (16:11 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 22 May 2012 17:42:28 +0000 (19:42 +0200)
SessionType has now completely been replaced by the finer-grained
session-mode, so remove the remaining type definition.

https://bugzilla.gnome.org/show_bug.cgi?id=676156

js/ui/sessionMode.js
src/shell-global.h

index ed6eaa2e9a4ee8971824c1c1e7f7f61b615da415..dd36873c347de7e25418dea8a60f320554356ddf 100644 (file)
@@ -1,7 +1,6 @@
 // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 
 const Lang = imports.lang;
-const Shell = imports.gi.Shell;
 
 const Config = imports.misc.config;
 const Main = imports.ui.main;
@@ -53,8 +52,8 @@ const _modes = {
                      'keyboard': imports.ui.status.keyboard.XKBIndicator,
                      'powerMenu': imports.gdm.powerMenu.PowerMenuButton
                  }
-             },
-             sessionType: Shell.SessionType.GDM },
+             }
+           },
 
     'user': { hasOverview: true,
               hasAppMenu: true,
@@ -72,8 +71,8 @@ const _modes = {
                       'network', 'battery', 'userMenu'
                   ],
                   implementation: STANDARD_STATUS_AREA_SHELL_IMPLEMENTATION
-              },
-              sessionType: Shell.SessionType.USER }
+              }
+            }
 };
 
 function modeExists(mode) {
index 41c21613c15ebf984a95d7899495d7979b710004..4d92995c92f746874b01e4d5b85017a9cc32d7cf 100644 (file)
@@ -141,11 +141,6 @@ void     shell_global_reexec_self               (ShellGlobal  *global);
 
 void     shell_global_launch_calendar_server    (ShellGlobal  *global);
 
-typedef enum {
-  SHELL_SESSION_USER,
-  SHELL_SESSION_GDM
-} ShellSessionType;
-
 const char *     shell_global_get_session_mode  (ShellGlobal  *global);
 
 G_END_DECLS